﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RockScissorPaper
{


    public class Judge
    {
        public static Result Getresult(int player,int computer)
        {
            //裁判
            if (player == computer)
                return Result.平手;
            else if (player - computer == -1 || player - computer == 2)
                return Result.玩家赢;
            else
                return Result.电脑赢;
           
        }
    }
}
